Skip to content

chore: enforce code formatting with @stylistic, mirroring nodejs/node#63

Open
bavulapati wants to merge 2 commits into
nodejs:mainfrom
bavulapati:chore/eslint-stylistic
Open

chore: enforce code formatting with @stylistic, mirroring nodejs/node#63
bavulapati wants to merge 2 commits into
nodejs:mainfrom
bavulapati:chore/eslint-stylistic

Conversation

@bavulapati
Copy link
Copy Markdown
Contributor

Adds machine-enforced JS/TS formatting via @stylistic/eslint-plugin, with rules mirrored from nodejs/node's eslint config — single quotes, trailing commas, 2-space indent, 120 max-len.

Two commits:

  1. add @Stylistic rules — dependency + config (the only commit to review).
  2. format codebase — mechanical eslint --fix, no behavior change.

Deviation from upstream: this repo has TypeScript, so it uses the unified @stylistic/eslint-plugin instead of the JS-only -js package (same rules).

No new CI — the existing lint.yml runs npm run lint on every push/PR, so it now enforces these rules. npm run lint and npm run node:test (40/40) pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Need Triage

Development

Successfully merging this pull request may close these issues.

1 participant